<div class="menu" xmlns="http://www.w3.org/1999/xhtml"
     xmlns:s="http://jboss.com/products/seam/taglib"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html">
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <ul>
        <li id="page_home"> <s:link view="/admin/main/home.xhtml" value="首页" rendered="#{isAdmin}"/> </li>
        
       
      	<li>
         <h:outputText value="欢迎, #{identity.username}!" rendered="#{isAdmin}"/>
         </li>
                 
        <li>
        	<s:link  action="#{login.logout}" value="注销" rendered="#{isAdmin}"/>
        </li>
        
        <li>
        	<s:link  action="#{addProduct.startAddProduct}" value="添加商品" rendered="#{isAdmin}"/>
        </li>
        
		<li>
        	<s:link  view="/admin/main/ship.xhtml"  value="处理订单" rendered="#{isAdmin}"/>
        </li>
        <li>
        	<s:link  view="/admin/main/Attribute.xhtml" action = "#{addAttribute.start}" value="添加商品属性" rendered="#{isAdmin}"/>
        </li>
        
    </ul>

    <script type="text/javascript" language="JavaScript">
        function setClass(id, className) {
            var obj = document.getElementById(id);
            if (obj != null) {
                obj.className = className;
            }
        }
        setClass("page_" + "#{page}", "current");
    </script>

</div>
  
